<?php include_partial('businessErrors', array('berrors' => $position->validate())) ?>
<table>
    <tbody>
        <tr>
            <th>Id:</th>
            <td><?php echo $position->getId() ?></td>
        </tr>
        <tr>
            <th>Employee:</th>
            <td><?php echo $position->getEmployee() ?></td>
        </tr>
        <tr>
            <th>Name:</th>
            <td><?php echo $position->getName() ?></td>
        </tr>
        <tr>
            <th>Start date:</th>
            <td><?php echo $position->getStartDate() ?></td>
        </tr>
        <tr>
            <th>End date:</th>
            <td><?php echo $position->getEndDate() ?></td>
        </tr>
        <tr>
            <th>Wage Type:</th>
            <td><?php echo $position->getWageType() ?></td>
        </tr>
        <tr>
            <th>Turnos:</th>
            <td>
                <?php foreach ($position->getShiftAssignment() as $sa): ?>
                    <div><?php echo $sa->getShift()->getName() ?></div>
                <?php endforeach; ?>
                </td>
            </tr>
            <tr>
                <th>Calculation Type:</th>
                <td><?php echo $position->getPaymentCalculationType() ?></td>
            </tr>
            <tr>
                <th>Salary:</th>
                <td><?php echo $position->getSalary() ?></td>
            </tr>
            <tr>
                <th>Salario Mensual:</th>
                <td><?php echo number_format($position->getMonthlySalary(), 2) ?></td>
            </tr>
            <tr>
                <th>Payment periodicity:</th>
                <td><?php echo $position->getPaymentPeriodicity() ?></td>
            </tr>
            <tr>
                <th>Location:</th>
                <td><?php echo $position->getPositionLocation() ?></td>
            </tr>
        <?php include_partial('global/stampedData', array('stamped' => $position)) ?>
                </tbody>
            </table>

            <hr />

            <a href="<?php echo url_for('position/edit?id=' . $position->getId()) ?>">Edit</a>
            &nbsp;
            <a href="<?php echo url_for('position/index') ?>">List</a>
